package com.yfq.springframework.aop;

/**
 * @author 姚凤桥
 * @date 2023/2/1 21:05
 * @description
 */
public class TargetSource {
    private final Object target;

    public TargetSource(Object source) {
        this.target = source;
    }

    public Class<?>[] getTargetClass() {
        return target.getClass().getInterfaces();
    }

    public Object getTarget() {
        return target;
    }
}
